import {createRouter, createWebHistory} from "vue-router";


const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            redirect: '/home'
        },
        {
            path: '/test',
            name: 'test',
            component: () => import('@/view/test/index.vue')
        },
        {
            path: '/home',
            name: 'Home',
            component: () => import('@/view/home/index.vue')
        }
    ]


})


export default router
